package demo;
//直接继承线程类
public class MyTread01 extends  Thread{
    @Override
    public void run() {

        while(true){
            System.out.println("A");
        }
    }
    public static void main(String[] args) {

        MyTread01 myTread01=new MyTread01();
        myTread01.start();
    }
}
